import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/admin/admin/getAdmins?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'post',
    data: data,//请求参数放请求体里
    headers: {
      'Content-type': 'application/json'
    }
  })
}

export function memberUpdate(params) {
  return request({
    url: '/admin/info',
    method: 'post',
    data: params
  })
}

export function adminUpdate(params,data) {
  return request({
    url: '/admin/admin/update/' + params,
    method: 'post',
    // params:params,
    data: data
  })
}
